package com.qhy.myrules;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author qiuhongyu
 * @date 2020/10/10 10:15
 */
@Configuration
public class QhyRule {
    @Bean
    public IRule myRule() {
        //默认是轮询，现在使用的是自定义的负载均衡策略
        return new QhyRandomRule();
    }
}
